#include "TcpServer.hpp"

void Usage(std::string proc)
{
    std::cout << "Usage:\n\t" << proc << " serverport\n"
              << std::endl;
}

// ./udpclient serverip serverport
int main(int argc, char *argv[])
{
    if (argc != 2)
    {
        Usage(argv[0]);
        exit(1);
    }
    uint16_t serverport = std::stoi(argv[1]);

    TcpServer server(serverport);
    Deamon(false, false);
    server.start();

    return 0;
}